﻿using com.guojin.core.io.message;
using System.Collections;
using System.Collections.Generic;
using com.guojin.core.io;
using UnityEngine;
using System;

namespace com.guojin.mj.net.message.login
{
    public class CreateClub : Message
    {
        public static int TYPE = 7;
        public static int ID = 71;
        private string headAddress;
        private string clubName;

        public string HeadAddress
        {
            get
            {
                return headAddress;
            }
            set
            {
                headAddress = value;
            }
        }
        public string ClubName
        {
            get
            {
                return clubName;
            }

            set
            {
                clubName = value;
            }
        }
        public static CreateClub creaet(string head,string name) {
            CreateClub cb = new CreateClub();
            cb.headAddress = head;
            cb.clubName = name;
            return cb;
        }
        public void decode(core.io.Input _in)
        {
            
        }

        public void encode(Output _out)
        {
            _out.writeString(headAddress);
            _out.writeString(clubName);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }
        public string toString()
        {
            return clubName+ "headAddress"+ headAddress;
        }
    }
}
